/*
Copyright (c) 2012, Andrew Dieffenbach. All rights reserved.

This file is part of puzl.

puzl is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

puzl is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301  USA
*/

// INCLUDES ======================================================================
#include <puzl/audio/CoreAudioSample.h>

// DEFINES =======================================================================

// TYPES =========================================================================

// PROTOTYPES ====================================================================

// EXTERNALS =====================================================================

// GLOBALS =======================================================================

// FUNCTIONS =====================================================================
//--------------------------------------------------------------------------------
CoreAudioSample::CoreAudioSample( void )
{
	setLoop( false );
}

//--------------------------------------------------------------------------------
CoreAudioSample::~CoreAudioSample( void )
{

}

//--------------------------------------------------------------------------------
int CoreAudioSample::load( string fileName )
{
	return -1;
}

//--------------------------------------------------------------------------------
int CoreAudioSample::play( void )
{
	return -1;
}

//--------------------------------------------------------------------------------
int CoreAudioSample::pause( void )
{
	return -1;
}

//--------------------------------------------------------------------------------
int CoreAudioSample::stop( void )
{
	return -1;
}

//--------------------------------------------------------------------------------
int CoreAudioSample::setLoop( bool loop )
{
	this->loop = loop;
	if( loop )
	{
		numberOfLoops = 0;
	}
	else
	{
		numberOfLoops = -1;
	}

	return 0;
}

//--------------------------------------------------------------------------------
bool CoreAudioSample::getLoop( void )
{
	return loop;
}

//--------------------------------------------------------------------------------
int CoreAudioSample::setNumberOfLoops( int numberOfLoops )
{
	this->numberOfLoops = numberOfLoops;
	if( numberOfLoops == 0 )
	{
		loop = false;
	}
	else
	{
		loop = true;
	}

	return 0;
}

//--------------------------------------------------------------------------------
int CoreAudioSample::getStatus( void )
{
	return -1;
}
